/**
 * related to listTypeCell.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-09-26
 */
var root=ui("$");
var do_ALayout_1 = ui("do_ALayout_1");
var do_ALayout_2 = ui("do_ALayout_2");
var do_ALayout_3 = ui("do_ALayout_3");
var rcbjTypeName = ui("rcbjTypeName");
var jdwxTypeName = ui("jdwxTypeName");
var jdqxTypeName = ui("jdqxTypeName");
var helperOpen = require("helper/open");

//设置数据绑定的映射关系
root.setMapping({
	"rcbjTypeName.tag":"rcbjTypeId",
	"rcbjTypeName.text":"rcbjTypeName",
	"rcbjTypeImg.source" : "rcbjTypeImg",
	"rcbjTypePrice.text" : "rcbjTypePrice",
	"rcbjTypeUnit.text" : "rcbjTypeUnit",
	"rcbjTypeRemark.text" : "rcbjTypeRemark",
	"jdwxTypeName.tag":"jdwxTypeId",
	"jdwxTypeName.text":"jdwxTypeName",
	"jdwxTypeImg.source" : "jdwxTypeImg",
	"jdwxTypeRemark.text" : "jdwxTypeRemark",
	"jdqxTypeName.tag":"jdqxTypeId",
	"jdqxTypeName.text":"jdqxTypeName",
	"jdqxTypeImg.source" : "jdqxTypeImg",
	"jdqxTypeRemark.text" : "jdqxTypeRemark"
});
//日常保洁
do_ALayout_1.on("touch", function(data){
	helperOpen.open("source://view/homemaking/detail/toOrder.ui",{typeId:rcbjTypeName.tag});
});
//家电维修
do_ALayout_2.on("touch", function(data){
	helperOpen.open("source://view/homemaking/base/gridType.ui", {"firstTypeId" : jdwxTypeName.tag});
});
//家电清洗
do_ALayout_3.on("touch", function(data){
	helperOpen.open("source://view/homemaking/base/listType.ui", {"firstTypeId" : jdqxTypeName.tag});
});